package cn.iune.backcenter.author;

import java.io.Serializable;
import javax.persistence.*;

import com.justep.baas.data.RowState;


/**
 * The persistent class for the sa_oporg database table.
 * 
 */

@Entity
@Table(name = "SaOporg")
@NamedQuery(name="SaOporg.findAll", query="SELECT s FROM SaOporg s")
public class SaOporg implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length=65)
	private String sID;
	@Column(length=128)
	private String sName;//名称
	@Column(length=15)
	private String sCode;//代码
	@Column(length=255)
	private String sLongName;//长名称
	@Column(length=2048)
	private String sFName;//全路径名称
	@Column(length=2048)
	private String sFCode;//全路径代码
	@Column(length=2048)
	private String sFID;//全路径ID
	@Column(length=5)
	private String sOrgKindID;//组织类型
	@Column(length=128)
	private String sSequence;//序号

	private int sValidState = 1;//可用状态
	@Column(length=32)
	private String sParent;//父节点
	@Column(length=32)
	private String sNodeKind;//节点类型

	private int sLevel;//节点级别
	@Column(length=255)
	private String sAddress;//地址
	@Column(length=128)
	private String sAddressDetail;//详细地址
	@Column(length=20)
	private String contacts;
	@Column(length=64)
	private String sPhone;//电话
	@Column(length=64)
	private String sFax;//传真
	@Column(length=64)
	private String sMail;//电子邮件
	@Column(length=16)
	private String sZip;//邮编
	@Column(length=1024)
	private String sDescription;//描述
	@Column(length=32)
	private String sPersonID;//人员ID
	@Column(length=32)
	private String sCreatorFID;//创始人
	
	@Column(length=256)
	private String images;//店铺头像
	@Column(length=256)
	private String summary;//店铺简介
	
	@Column(length=128)
	private String appUrl;//混合云网址（域名），应用单独部署服务器

	@Version
	private int version;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}
	public String getsID() {
		return sID;
	}
	public void setsID(String sID) {
		this.sID = sID;
	}
	public String getsAddress() {
		return sAddress;
	}
	public void setsAddress(String sAddress) {
		this.sAddress = sAddress;
	}
	public String getsCode() {
		return sCode;
	}
	public void setsCode(String sCode) {
		this.sCode = sCode;
	}
	public String getsDescription() {
		return sDescription;
	}
	public void setsDescription(String sDescription) {
		this.sDescription = sDescription;
	}
	public String getsFax() {
		return sFax;
	}
	public void setsFax(String sFax) {
		this.sFax = sFax;
	}
	public String getsFCode() {
		return sFCode;
	}
	public void setsFCode(String sFCode) {
		this.sFCode = sFCode;
	}
	public String getsFID() {
		return sFID;
	}
	public void setsFID(String sFID) {
		this.sFID = sFID;
	}
	public String getsFName() {
		return sFName;
	}
	public void setsFName(String sFName) {
		this.sFName = sFName;
	}
	public int getsLevel() {
		return sLevel;
	}
	public void setsLevel(int sLevel) {
		this.sLevel = sLevel;
	}
	public String getsLongName() {
		return sLongName;
	}
	public void setsLongName(String sLongName) {
		this.sLongName = sLongName;
	}
	public String getsName() {
		return sName;
	}
	public void setsName(String sName) {
		this.sName = sName;
	}
	public String getsNodeKind() {
		return sNodeKind;
	}
	public void setsNodeKind(String sNodeKind) {
		this.sNodeKind = sNodeKind;
	}
	public String getsOrgKindID() {
		return sOrgKindID;
	}
	public void setsOrgKindID(String sOrgKindID) {
		this.sOrgKindID = sOrgKindID;
	}
	public String getsParent() {
		return sParent;
	}
	public void setsParent(String sParent) {
		this.sParent = sParent;
	}
	public String getsPersonID() {
		return sPersonID;
	}
	public void setsPersonID(String sPersonID) {
		this.sPersonID = sPersonID;
	}
	public String getsPhone() {
		return sPhone;
	}
	public void setsPhone(String sPhone) {
		this.sPhone = sPhone;
	}
	public String getsSequence() {
		return sSequence;
	}
	public void setsSequence(String sSequence) {
		this.sSequence = sSequence;
	}
	public int getsValidState() {
		return sValidState;
	}
	public void setsValidState(int sValidState) {
		this.sValidState = sValidState;
	}
	public String getsZip() {
		return sZip;
	}
	public void setsZip(String sZip) {
		this.sZip = sZip;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getsCreatorFID() {
		return sCreatorFID;
	}
	public void setsCreatorFID(String sCreatorFID) {
		this.sCreatorFID = sCreatorFID;
	}
	public String getsAddressDetail() {
		return sAddressDetail;
	}
	public void setsAddressDetail(String sAddressDetail) {
		this.sAddressDetail = sAddressDetail;
	}
	public String getImages() {
		return images;
	}
	public void setImages(String images) {
		this.images = images;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getContacts() {
		return contacts;
	}
	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	public String getsMail() {
		return sMail;
	}
	public void setsMail(String sMail) {
		this.sMail = sMail;
	}
	public String getAppUrl() {
		return appUrl;
	}
	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}


}